<title>User Type</title>
<h2>User Type</h2>
<script>
    $("ul li").each(function() {
        if ($(this).attr("key") == "adminsettings") {
            $(this).addClass("active");
        }
    });
</script>
<div class="row-fluid">    
    <div class="span3 well">
        <table class="table">
            <thead>
                <tr>
                    <th class="span1">#</th>
                    <th class="span1">Type</th>
                    <th class="span1"><a class="btn btn-mini btn-success" href="/admin/usertype/add"><i class="icon-plus-sign"></i> Add</a></th>
                </tr>
            </thead>            
            <?php
            $localVar = 1;
            foreach ($this->userTypes as $value) :
                ?>
                <tr>
                    <td><?= $localVar++; ?></td>
                    <td><?= $value['type']; ?></td>
                    <td><a class="btn btn-mini" href="<?=$this->url(array('id'=>$value['sr']),'adminusertypeupdate');?>"><i class="icon-pencil"></i> Edit</a></td>
                </tr>
            <?php endforeach; ?>                
        </table>
    </div>
</div>
<br><br>